package com.itheima.controller.user;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.itheima.api.user.UmsMemberLevelService;
import com.itheima.vo.domain.AjaxResult;
import com.itheima.vo.pojo.UmsMemberLevel;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/memberLevel")
public class UmsMemberLevelController {

    @DubboReference
    private UmsMemberLevelService umsMemberLevelService;

/*
查询所有会员等级
* */
    @GetMapping("/list")
    public AjaxResult  list( Integer defaultStatus){
        List<UmsMemberLevel> list = umsMemberLevelService.getList(defaultStatus);
        return AjaxResult.success(list);
    }
}
